<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 以前this的指向：  谁调用的这个函数，this 就指向谁
    const obj={
      uname:'张三',
      sing:()=>{
        console.log(this)
      },
    }
    obj.sing()
  </script>
</body>

</html>